package com.example.a_base

/**
@author whd
@date 2023/10/13 17:02:34
 */
fun main() {
  val a:Int = 1
  val b:Long = 15
  var s:Student= Student(1,"张三",33)
  println("x = ${s}")
}
class Student{
  var id=10
  var name=""
  var age=18

  constructor(id: Int, name: String, age: Int) {
    this.id = id
    this.name = name
    this.age = age
  }

  override fun toString(): String {
    return "Student(id=$id, name='$name', age=$age)"
  }

}
